7583c690c53b90e209dd3169dba22763a81df3d0,xwiki-platform-tag/plugin/lucene/src/main/java/com/xpn/xwiki/plugin/lucene/LucenePluginApi.java,LucenePluginApi,rebuildIndex,#,56

Before Change


    {
        int nbDocuments = -1;
        if (hasAdminRights()) {
            nbDocuments = getProtectedPlugin().rebuildIndex(context);
        }
        return nbDocuments;
    }

After Change


    public int rebuildIndex()
    {
        if (hasAdminRights()) {
            return getProtectedPlugin().rebuildIndex(context);
        }
        return REBUILD_NOT_ALLOWED;
    }